﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Backend/Backend.Master" Inherits="System.Web.Mvc.ViewPage<IntroduceCompany.VideoView>" %>
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	VideoCreate
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript" src="<%= Url.Content("../../../Content/Backend/js/ckeditor/ckeditor.js")%>"></script>
<!-- Begin one column tab content window -->
    <div class="onecolumn">
        <div class="header">
            <span>Thêm Clip Mới</span>
            <div class="switchbutton">
                <a href="<%= Url.Action("VideoList", "Video") %>" class="button">Danh sách</a>
            </div>
        </div>
        <br class="clear" />
        <div class="content">
            <% using (Html.BeginForm()) {%>
                <%= Html.AntiForgeryToken(IntroduceCompany.Util.AntiKey.EditSalt)%>
                
            <div class="display-label error">
                <div class="errorcontent">
                    <p><%= Html.ValidationMessage("Notice")%></p>
                    <p><%= Html.ValidationMessageFor(model => model.VideoTitle) %></p>
                    <p><%= Html.ValidationMessageFor(model => model.VideoURL) %></p>
                </div>
            </div>
            <div>
                <label>Ngôn ngữ:</label><br />
                <%= Html.DropDownListFor(model => model.LanguageID, (SelectList)ViewData["LaguageList"], new { @style="width:300px;"})%>
            </div><br class="clear"/>
            <div>
                <div class="editor_fl">
                    <label>Chủ đề clip:</label><br />
                    <%= Html.TextBoxFor(model => model.VideoTitle, new { @style = "width:620px;margin-right:30px;", Maxlength = "120" })%>
                </div>
                 <div class="editor_right">
                    <label>Link :</label><br />
                    <%= Html.TextBoxFor(model => model.VideoURL, new { Maxlength = "500"} )%>
                </div>
            </div><br class="clear"/><br />
            <div>
                <label>Mô tả clip:</label><br />
                <%= Html.TextAreaFor(model => model.VideoDescription, new { @class = "ckeditor", Maxlength = "500"})%>
            </div><br class="clear"/>

            <p>
                <input type="submit" value="Tạo Video" />
            </p>
            <script type="text/javascript">
                CKEDITOR.replace('VideoDescription', {
                    BasePath: '../../../Content/Backend/js/ckeditor/',
                    customConfig: 'CustomAdmin.js'
                });
	        </script>
            <% } %>
        </div>
    </div>
</asp:Content>

